

import { createApp } from 'vue'
import { createPinia } from 'pinia'

import App from './App.vue'
import router from './router'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
import globals from './plugins/globals'

// 全局引入  => 一次注册,任意位置使用  (缺点: 不使用的组件也会被引入  -> 冗余代码)
// import vant from "vant";

import "vant/lib/index.css";
import "./styles/reset.scss";

const app = createApp(App)

// app.use(vant);
let pinia = createPinia(); //
pinia.use(piniaPluginPersistedstate); //pinia使用数据持久化插件
app.use(pinia);  // vue中使用pinia
app.use(router)
app.use(globals);

app.mount('#app')
